<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script>
			/* 
                Object.keys 可以遍历自身可枚举的属性
            */
			class Father {
				constructor(name, age) {
					this.name = name
					this.age = age
				}
				number = 12
				getAge() {
					return this.age
				}
			}
			Father.prototype.expand = () => {}
			class Child extends Father {
				constructor(name, age) {
					super(name, age)
				}
			}
			const obj = new Child('zs', 18)
			Object.defineProperty(obj, 'name', {
				enumerable: false,
			})
			console.log(Object.keys(obj))
			// ['number',  'age']
            Object.getOwnPropertyNames()
		</script>
	</head>
	<body></body>
</html>
